import request from '@/utils/request'
// 列表
export function getMaintenance(query) {
  return request({
    url: '/car/carMaintenance/list',
    method: 'get',
    params: query
  })
}

// 查询详细 
export function getMaintenanceDetails(id) {
  return request({
    url: '/car/carMaintenance/' + id,
    method: 'get'
  })
}


// 删除
export function delMaintenance(id) {
  return request({
    url: '/car/carMaintenance/' + id,
    method: 'delete'
  })
}

// 编辑
export function updateCar(data) {
    return request({
      url: '/car/carModel',
      method: 'put',
      data: data
    })
  }